'use strict';

let
    Koa = require('koa'),
    bodyParser = require('koa-bodyparser'),
    controllers = require('./controllers'),
    templating = require('./templating'),
    statics = require('koa-static'),
    app = new Koa(),
    port = 5000


app.use(statics(__dirname + '/view'))

app.use(bodyParser());

app.use(templating);

app.use(controllers());

app.listen(port, () => {
    console.log(`http://localhost:${port}`);
})